﻿using Microsoft.AspNetCore.Mvc;
using YSC_Services.BLL.Services.Interfaces;

namespace YSC_Backstage_Web.Controllers
{
    /// <summary>
    /// 地区管理
    /// </summary>
    public class AreaController : Controller
    {
        private readonly IBasisBackstageServices _pro;
        public AreaController(IBasisBackstageServices pro)
        {
            _pro = pro;
        }
        //Area
        //地区
        public IActionResult Index()
        {
            return View();
        }

        public JsonResult GetList(int level, string PunCode, string AreaName)
        {
            var aa = _pro.GetAreaAll(level, PunCode, AreaName);
            return Json(aa);

        }
    }
}